// #ifndef VUE3
import Vue from 'vue'
import Vuex from 'vuex'
import app from '@/store/modules/app.js'
import user from '@/store/modules/user.js'
import home from '@/store/modules/home.js'
Vue.use(Vuex)
const store = new Vuex.Store({
	app,
	user,
	home
})

// #endif

// #ifdef VUE3
import {
	createStore
} from 'vuex'
import app from '@/store/modules/app.js'
import user from '@/store/modules/user.js'
import home from '@/store/modules/home.js'

const store = createStore({
	// #endif
	modules: {
		app,
		user,
		home
	},
	state: {
		ceshi: '123'
	},
	mutations: {
		// 同步的方法	
		addNum(state, index) {
			console.log(index);
		}
	}
})

export default store